package com.github.cooingandwooing.manager;

/**
 * @author cooingandwooing
 */
public class OptLockThread implements Runnable {
    private Example2UserManager example2UserManager;

    public OptLockThread(Example2UserManager example2UserManager) {
        this.example2UserManager = example2UserManager;
    }

    @Override
    public void run() {
        System.out.println("线程" + Thread.currentThread().getName() + " ");
        example2UserManager.updateByEntitySucc();
    }
}
